package com.baizhi.homework2;

/**
 * 键盘
 */
public class Keyboard implements USB{
    private String brand; //品牌

    public Keyboard() {
    }

    public Keyboard(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 键盘特有的方法
     */
    public void typeIn(){
        System.out.println(brand + "牌子的键盘录入了内容~~~");
    }

    @Override
    public void connect() {
        System.out.println(brand + "牌子的的键盘成功连接了设备~~~~");
    }

    @Override
    public void unconnect() {
        System.out.println(brand + "牌子的键盘完全弹出了设备......");
    }
}
